package com.example.mqdemo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
 *@description: mq配置文件
 *@author: hisen
 *@Time: 2023/11/21  10:30
 */
@Configuration
public class RabbitMqConfig {
    @Bean
    public Queue pointToPointQueue() {
        return new Queue("point_to_point", false);
    }

    @Bean
    public Queue roundRobinWorkQueue() {
        return new Queue("round-robin-dispatch_work");
    }

    @Bean
    public Queue fairWorkQueue() {
        return new Queue("fair-dispatch_work");
    }
}
